
package com.yjh.admin.server.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjh.admin.dto.user.UserDto;
import enums.SysUser;
import enums.UserInfo;

import java.util.List;

/**
 * 用户表
 *
 * @author smithGuo
 * @date 2020-07-01 08:38:57
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 查询用户信息
     *
     * @param sysUser 用户
     * @return userInfo
     */
    UserInfo findUserInfo(SysUser sysUser);

    SysUser getByName(String userName);

    SysUser getById(Integer userId);

    List<UserDto>  queryUser();

    int  saveSysUser(SysUser sysUser);


}
